home *** CD-ROM | disk | FTP | other *** search
/ Technotools / Technotools (Chestnut CD-ROM)(1993).ISO / os2tools / bnklysrc / sched.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-02-25  |  7.7 KB  |  131 lines

  1. /*--------------------------------------------------------------------------*/
  2. /*                                                                          */
  3. /*                                                                          */
  4. /*      ------------         Bit-Bucket Software <no-Inc>                   */
  5. /*      \ 10001101 /         Writers and Distributors of                    */
  6. /*       \ 011110 /          No-Cost<no-tm> Software.                       */
  7. /*        \ 1011 /                                                          */
  8. /*         ------                                                           */
  9. /*                                                                          */
  10. /*  Copyright (C) 1987, 1988, 1989 by Robert Hartman and Vincent Perriello  */
  11. /*                                                                          */
  12. /*                                                                          */
  13. /*             Scheduler definitions used in BinkleyTerm 2.10               */
  14. /*                                                                          */
  15. /*                                                                          */
  16. /*    For complete  details  of the licensing restrictions, please refer    */
  17. /*    to the License  agreement,  which  is published in its entirety in    */
  18. /*    the MAKEFILE and BT.C, and also contained in the file LICENSE.210.    */
  19. /*                                                                          */
  20. /*    USE  OF THIS FILE IS SUBJECT TO THE  RESTRICTIONS CONTAINED IN THE    */
  21. /*    BINKLEYTERM  LICENSING  AGREEMENT.  IF YOU DO NOT FIND THE TEXT OF    */
  22. /*    THIS  AGREEMENT IN ANY OF THE  AFOREMENTIONED FILES,  OR IF YOU DO    */
  23. /*    NOT HAVE THESE FILES,  YOU SHOULD  IMMEDIATELY CONTACT THE AUTHORS    */
  24. /*    AT THE  ADDRESSES LISTED BELOW.  IN NO EVENT SHOULD YOU PROCEED TO    */
  25. /*    USE   THIS  FILE  WITHOUT  HAVING   ACCEPTED  THE  TERMS  OF   THE    */
  26. /*    BINKLEYTERM  LICENSING AGREEMENT,  OR SUCH OTHER  AGREEMENT AS YOU    */
  27. /*    ARE ABLE TO REACH WITH THE AUTHORS.                                   */
  28. /*                                                                          */
  29. /*                                                                          */
  30. /*    The Authors can be reached at the following addresses:                */
  31. /*                                                                          */
  32. /*    Robert C. Hartman                      Vincent E. Perriello           */
  33. /*    Spark Software                         VEP Software                   */
  34. /*    427-3 Amherst Street                   111 Carroll Street             */
  35. /*    CS2032, Suite 232                      Naugatuck, CT 06770            */
  36. /*    Nashua, NH 03061                                                      */
  37. /*                                                                          */
  38. /*    FidoNet 1:132/101                      FidoNet 1:141/491              */
  39. /*    Data    (603) 888-8179                 Data    (203) 729-7569         */
  40. /*                                                                          */
  41. /*    Please feel free to contact us at any time to share your comments     */
  42. /*    about our software and/or licensing policies.                         */
  43. /*                                                                          */
  44. /*--------------------------------------------------------------------------*/
  45.  
  46.  
  47. /* Definitions for day of the week */
  48. #define DAY_SUNDAY      0x01
  49. #define DAY_MONDAY      0x02
  50. #define DAY_TUESDAY     0x04
  51. #define DAY_WEDNESDAY   0x08
  52. #define DAY_THURSDAY    0x10
  53. #define DAY_FRIDAY      0x20
  54. #define DAY_SATURDAY    0x40
  55. #define DAY_UNUSED      0x80
  56.  
  57. #define DAY_WEEK  (DAY_MONDAY|DAY_TUESDAY|DAY_WEDNESDAY|DAY_THURSDAY|DAY_FRIDAY)
  58. #define DAY_WKEND (DAY_SUNDAY|DAY_SATURDAY)
  59.  
  60. /* Definitions for matrix behavior */
  61. #define MAT_CM          0x0001
  62. #define MAT_DYNAM       0x0002
  63. #define MAT_BBS         0x0004
  64. #define MAT_NOREQ       0x0008
  65. #define MAT_OUTONLY     0x0010
  66. #define MAT_NOOUT       0x0020
  67. #define MAT_FORCED      0x0040
  68. #define MAT_LOCAL       0x0080
  69. #define MAT_SKIP        0x0100
  70. #define MAT_NOMAIL24    0x0200
  71. #define MAT_NOOUTREQ    0x0400
  72. #define MAT_NOCM        0x0800
  73. #define MAT_RESERVED1   0x1000
  74. #define MAT_RESERVED2   0x2000
  75. #define MAT_RESERVED3   0x4000
  76. #define MAT_RESERVED4   0x8000
  77.  
  78. /*********************************************************************
  79. * If either of these structures are changed, don't forget to change  *
  80. * the BinkSched string in sched.c, as well as the routines that read *
  81. * and write the schedule file (read_sched, write_sched)!!!           *
  82. *********************************************************************/
  83. typedef struct _event
  84. {
  85.    int days;                                     /* Bit field for which days
  86.                                                   * to execute */
  87.    int minute;                                   /* Minutes after midnight to
  88.                                                   * start event */
  89.    int length;                                   /* Number of minutes event
  90.                                                   * runs */
  91.    int errlevel[5];                              /* Errorlevel exits */
  92.    int last_ran;                                 /* Day of month last ran */
  93.    int behavior;                                 /* Behavior mask */
  94.    int wait_time;                                /* Average number of seconds
  95.                                                   * to wait between dials */
  96.    int with_connect;                             /* Number of calls to make
  97.                                                   * with carrier */
  98.    int no_connect;                               /* Number of calls to make
  99.                                                   * without carrier */
  100.    int node_cost;                                /* Maximum cost node to call
  101.                                                   * during this event */
  102.    char cmd[32];                                 /* Chars to append to
  103.                                                   * packer, aftermail and
  104.                                                   * cleanup */
  105.    char month;                                   /* Month when to do it   */
  106.    char day;                                     /* Day of month to do it */
  107.    int extra[1];                                 /* Extra space for later */
  108. } EVENT;
  109.  
  110. typedef struct _history
  111. {
  112.    int which_day;                                /* Day number for this
  113.                                                   * record */
  114.    int bbs_calls;                                /* Number of BBS callers */
  115.    int mail_calls;                               /* Number of mail calls */
  116.    int calls_made;                               /* Number of outgoing calls
  117.                                                   * made */
  118.    int connects;                                 /* Number of outbound call
  119.                                                   * successes */
  120.    int files_in;                                 /* Number of files received */
  121.    int files_out;                                /* Number of files sent */
  122.    int last_caller;                              /* Type of last call */
  123.    int last_zone;                                /* Zone number of last call */
  124.    int last_net;                                 /* Net  number of last call */
  125.    int last_node;                                /* Node number of last call */
  126.    int next_zone;                                /* Zone number of next call */
  127.    int next_net;                                 /* Net  number of next call */
  128.    int next_node;                                /* Node number of next call */
  129.    int extra[2];
  130. } HISTORY;
  131.